home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2001 May / may_2001.iso / intercd / root / Multimedia / Image / ^iShell / setup.exe / Main / ToolsTable.k < prev    next >
Encoding:
Text File  |  2001-03-26  |  4.6 KB  |  188 lines

  1. module oASTablePlugin is cPlugin
  2. has
  3.     release Editor:
  4.         GetIO()
  5.             do
  6.                 result := oIOASTablePlugin;
  7.             end;
  8.     end;
  9. end;
  10.  
  11. release Editor:
  12.  
  13. object oIOASTableLabel is "Table";
  14.  
  15. object oIOASTablePlugin is cIOPlugin
  16. with
  17.     AboutDialog is cUIAboutPluginDialog
  18.     with
  19.         HelpURL is "Modules/Table.htm";
  20.         Label is oIOASTableLabel;
  21.         Text is "Table element and command.";
  22.     end;
  23.     MenuItems is [
  24.         cIOASTableOpMenuItem with Name is "Append Column"; Value is oASAppendColumnOp; end,
  25.         cIOASTableOpMenuItem with Name is "Append Row"; Value is oASAppendRowOp; end,
  26.         cIOASTableOpMenuItem with Name is "Count Columns"; Value is oASCountColumnsOp; end,
  27.         cIOASTableOpMenuItem with Name is "Count Rows"; Value is oASCountRowsOp; end,
  28.         cIOASTableOpMenuItem with Name is "Delete All Columns"; Value is oASDeleteAllColumnsOp; end,
  29.         cIOASTableOpMenuItem with Name is "Delete All Rows"; Value is oASDeleteAllRowsOp; end,
  30.         cIOASTableOpMenuItem with Name is "Delete Column"; Value is oASDeleteColumnOp; end,
  31.         cIOASTableOpMenuItem with Name is "Delete Row"; Value is oASDeleteRowOp; end,
  32.         cIOASTableOpMenuItem with Name is "Find First Row"; Value is oASFindFirstRowOp; end,
  33.         cIOASTableOpMenuItem with Name is "Find Last Row"; Value is oASFindLastRowOp; end,
  34.         cIOASTableOpMenuItem with Name is "Find Next Row"; Value is oASFindNextRowOp; end,
  35.         cIOASTableOpMenuItem with Name is "Find Previous Row"; Value is oASFindPreviousRowOp; end,
  36.         cIOASTableOpMenuItem with Name is "Get Cell Value"; Value is oASGetCellOp; end,
  37.         cIOASTableOpMenuItem with Name is "Get Column Name"; Value is oASGetColumnNameOp; end,
  38.         cIOASTableOpMenuItem with Name is "Insert Column At"; Value is oASInsertColumnOp; end,
  39.         cIOASTableOpMenuItem with Name is "Insert Row At"; Value is oASInsertRowOp; end,
  40.         cIOASTableOpMenuItem with Name is "Save"; Value is oASSaveMediaOp; end,
  41.         cIOASTableOpMenuItem with Name is "Set Cell Value"; Value is oASSetCellOp; end,
  42.         cIOASTableOpMenuItem with Name is "Set Column Name"; Value is oASSetColumnNameOp; end
  43.     ];
  44.     ElementLines is [
  45.         cIOSeedListLine 
  46.         with 
  47.             Label is oIOSpecialLabel;
  48.             Lines is [
  49.                 cIOSeedLine with IO is oIOASTable; end
  50.             ];
  51.         end
  52.     ];
  53.     CommandLines is [
  54.         cIOSeedListLine 
  55.         with 
  56.             Label is oIOSpecialLabel;
  57.             Lines is [
  58.                 cIOSeedLine with IO is oIOASTableCommand; end
  59.             ];
  60.         end
  61.     ];
  62.     Openers is [
  63.         oASTableOpener
  64.     ];
  65. end;
  66.  
  67. object oASTableOpener is cMediaOpener
  68. has
  69.     ChangeAttributes(theRuntime, theLayout, theElement, thePath)
  70.         do
  71.             self.cMediaOpener:ChangeAttributes(theRuntime, theLayout, theElement, thePath);
  72.         end;
  73.         
  74.     Register()
  75.         do
  76.             oTypeMap.Register(self, void, void, "tab");
  77.         end;
  78.         
  79. with
  80.     IO is oIOASTable;
  81. end;
  82.  
  83. object oASAppendColumnOp is cASAppendColumnOp
  84. with
  85.     Value is 0;
  86. end;
  87.  
  88. object oASAppendRowOp is cASAppendRowOp
  89. with
  90. end;
  91.  
  92. object oASCountColumnsOp is cASCountColumnsOp
  93. with
  94.     ValueRef is cLocalRef with Name is "result"; end;
  95. end;
  96.  
  97. object oASCountRowsOp is cASCountRowsOp
  98. with
  99.     ValueRef is cLocalRef with Name is "result"; end;
  100. end;
  101.  
  102. object oASDeleteAllColumnsOp is cASDeleteAllColumnsOp
  103. with
  104. end;
  105.  
  106. object oASDeleteAllRowsOp is cASDeleteAllRowsOp
  107. with
  108. end;
  109.  
  110. object oASDeleteColumnOp is cASDeleteColumnOp
  111. with
  112.     Column is 1;
  113. end;
  114.  
  115. object oASDeleteRowOp is cASDeleteRowOp
  116. with
  117.     Row is 1;
  118. end;
  119.  
  120. object oASFindFirstRowOp is cASFindFirstRowOp
  121. with
  122.     Column is 1;
  123.     Op is oTestAnyEqualOpSeed;
  124.     ValueRef is cLocalRef with Name is "result"; end;
  125. end;
  126.  
  127. object oASFindLastRowOp is cASFindLastRowOp
  128. with
  129.     Column is 1;
  130.     Op is oTestAnyEqualOpSeed;
  131.     ValueRef is cLocalRef with Name is "result"; end;
  132. end;
  133.  
  134. object oASFindNextRowOp is cASFindNextRowOp
  135. with
  136.     Column is 1;
  137.     Op is oTestAnyEqualOpSeed;
  138.     Row is cLocalRef with Name is "it"; end;
  139.     ValueRef is cLocalRef with Name is "result"; end;
  140. end;
  141.  
  142. object oASFindPreviousRowOp is cASFindPreviousRowOp
  143. with
  144.     Column is 1;
  145.     Op is oTestAnyEqualOpSeed;
  146.     Row is cLocalRef with Name is "it"; end;
  147.     ValueRef is cLocalRef with Name is "result"; end;
  148. end;
  149.  
  150. object oASGetCellOp is cASGetCellOp
  151. with
  152.     Row is 1;
  153.     Column is 1;
  154.     ValueRef is cLocalRef with Name is "result"; end;
  155. end;
  156.  
  157. object oASGetColumnNameOp is cASGetColumnNameOp
  158. with
  159.     Column is 1;
  160.     ValueRef is cLocalRef with Name is "result"; end;
  161. end;
  162.  
  163. object oASInsertColumnOp is cASInsertColumnOp
  164. with
  165.     Column is 1;
  166.     Value is 0;
  167. end;
  168.  
  169. object oASInsertRowOp is cASInsertRowOp
  170. with
  171.     Row is 1;
  172. end;
  173.  
  174. object oASSetCellOp is cASSetCellOp
  175. with
  176.     Row is 1;
  177.     Column is 1;
  178.     Value is 0;
  179. end;
  180.  
  181. object oASSetColumnNameOp is cASSetColumnNameOp
  182. with
  183.     Column is 1;
  184.     Value is "";
  185. end;
  186.  
  187. end; -- release Editor
  188.